package com.newly.common.base.entity.sys.operLogger.dto;

import com.newly.common.base.entity.valid.Insert;
import com.newly.common.base.entity.valid.Update;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @program: newly-parent
 * @remark: 操作日志DTO
 * @author: guan
 * @create: 2021-12-04 17:52
 */
@Data
public class OperLoggerDto implements Serializable {
    /**
     * 日志id
     */
    @NotBlank(message = "id can't be empty", groups = {Update.class})
    private Long id;

    /**
     * 操作用户
     */
    @NotNull(message = "userId can't be empty", groups = Insert.class)
    private Long userId;

    /**
     * 操作类型
     */
    private String ability;

    /**
     * 操作原型
     */
    private String prototype;

    /**
     * 操作参数
     */
    private String argument;

    /**
     * 备注
     */
    private String remark;

    /**
     * 操作时间
     */
    private Date createTime;

    /**
     * 操作状态
     */
    private Integer status;

    private static final long serialVersionUID = 1L;
}